package com.xjve.pojo;

import com.xjve.framework.hibernate.jpa.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.BatchSize;

import javax.persistence.*;


@Entity
@Table(name = "biz_student")
@Getter
@Setter
public class Student extends BaseEntity {


    private String name;

    private Integer age;

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "school_id")
    private School school;

    // 其他字段和getter/setter方法
}
